
// 设备知识库目录知识库目录
import qs from 'qs'

import request from "@/utils/request"

/**
 *GET 获取设备知识库目录列表
  * @params
 * @return {*}
 */
export function getKnowledgeBaseList(params) {
  return request({
    url: "/knowledgeBase/getList?" + qs.stringify(params),
    method: "get",
  })
}


/**
 * 新增设备知识库目录
 * @return {*}
 */
export function addKnowledgeBase(data) {
  return request({
    url: "/knowledgeBase/add",
    method: "post",
    data
  })
}

/**
 * 修改设备知识库目录
 * @return {*}
 */
export function updateKnowledgeBase(data) {
  return request({
    url: "/knowledgeBase/update",
    method: "post",
    data
  })
}

/**
 * 删除设备知识库目录
 * @return {*}
 */
export function deleteKnowledgeBaseById(id) {
  return request({
    url: "/knowledgeBase/delete?id=" + id,
    method: "delete",
  })
}






/**
 *GET 获取设备知识库文档列表
  * @params
 * @return {*}
 */
export function getDoctKnowledgeBase(id) {
  return request({
    url: "/knowledgeBase/getDoc?id=" + id,
    method: "get",
  })
}


/**
 * 新增设备知识库文档
 * @return {*}
 */
export function saveDocKnowledgeBase(data) {
  return request({
    url: "/knowledgeBase/saveDoc",
    method: "post",
    data
  })
}







